@extends('LaravelExtend::app')

@section('stylesheet')
    @parent
    <link href="{{ asset('_static/app/css/app.css') }}" rel="stylesheet">
@endsection
@section('header-script')
    @parent
    <script type="text/javascript">
        var menuCallback = function (href) {
            switch (href) {
                case "contact":
                    alert('aaa');
                    break;
            }
            return
        }
    </script>
@endsection
@section('page-header')
    <el-row type="flex" justify="space-between" class="overflow-hidden">
        <h1 class="logo-wrapper">
            {{ config('app.name', '') }}
        </h1>
        <div>

            <el-row type="flex" justify="end">
                <menu-nav mode="auto" state-change-on="xs"></menu-nav>
                <menu-auth
                    auth-guard="web">
                    <template v-slot:unlogined>
                        <el-menu-item><a href="/">测试</a></el-menu-item>
                    </template>
                    <template v-slot:logined>
                        <el-menu-item><a href="/">控制台</a></el-menu-item>
                        <el-menu-item><a href="/test">账号信息</a></el-menu-item>
                    </template>
                </menu-auth>
            </el-row>
        </div>
    </el-row>
@endsection
@section('page-main')
    <form-test></form-test>
@endsection

@section('footer-script')
    @parent

    <script src="{{ asset('_static/app/js/manifest.js') }}"></script>
    <script src="{{ asset('_static/app/js/vendor.js') }}"></script>
    <script src="{{ asset('_static/app/js/app.js') }}"></script>

    @include('LaravelExtend::file_service')
    @include('LaravelExtend::editor')
@endsection


